<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title></title>
<script type="text/javascript">
var isLogin=function(username,pwd){
	if(username=='mr' && pwd=='mrsoft'){
		alert("登录成功！");
	}else{
		alert("微信号或密码不正确！");
	}
}
</script>
</head>
<body>
<script type="text/javascript">
	isLogin("mra","mrsoft");	//调用函数并传递参数
</script>
</body>
</html>
